package com.freshminds.saudiproject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ListView;

public class CourseContributors extends Activity 
{
	
	ListView listView;
	String strArray[]=new String[]{"a","a","a","a","a","a","a","a","a","a"};
	ImageView imgVwBack;
	
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_course_contributor);
		imgVwBack=(ImageView)findViewById(R.id.ximgVwBack);
		imgVwBack.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				finish();
			}
		});
		listView=(ListView)findViewById(R.id.listView1);
		CourseAdapter adapter=new CourseAdapter(CourseContributors.this, strArray);
		listView.setAdapter(adapter);
		findBottomMenuView();
	}
	
	void findBottomMenuView()
	{
		ImageView imgVwFeatured,imgVwMostViewed,imgVwMyFavourites,imgVwSendToFriend;
		
		imgVwFeatured=(ImageView)findViewById(R.id.ximgVwFeatured);
		imgVwMostViewed=(ImageView)findViewById(R.id.ximgVwMostViewed);
		imgVwMyFavourites=(ImageView)findViewById(R.id.ximgVwMyFavourites);
		imgVwSendToFriend=(ImageView)findViewById(R.id.ximgVwSendToFriend);
		
		imgVwFeatured.setOnClickListener(new OnClickListener() 
		{
			
			@Override
			public void onClick(View v) 
			{
				Utility utility=new Utility(CourseContributors.this);
				utility.showToast("Button Clicked");
				
			}
		});
		
		imgVwMostViewed.setOnClickListener(new OnClickListener() 
		{
			
			@Override
			public void onClick(View v) 
			{
				startActivity(new Intent(CourseContributors.this, MostViewed.class));
				
			}
		});
		
		imgVwMyFavourites.setOnClickListener(new OnClickListener() 
		{
			
			@Override
			public void onClick(View v) 
			{
				Utility utility=new Utility(CourseContributors.this);
				utility.showToast("Button Clicked");
				
			}
		});

		imgVwSendToFriend.setOnClickListener(new OnClickListener()
		{
	
			@Override
			public void onClick(View v) 
			{
				Utility utility=new Utility(CourseContributors.this);
				utility.showToast("Button Clicked");
				
			}
		});
		
		
		
		
	}
	

	
}
